﻿namespace PMS.Web.Controllers.WebApi
{
    /// <summary>
    /// DavidLee 所有API路由在此注册，方便查找及重复排查
    /// </summary>
    public static class WebApiRouteConfig
    {
        #region CommonApi
        public const string IsCaptchaEnabled = "/api/common/iscaptchaenabled";
        public const string GenericCaptchaCode = "/api/common/getcaptchacode";
        public const string GetStoreSelectList = "/api/common/getstoresforselect";
        public const string ZYUploadApiUpload = "/api/common/zyupload/upload";
        public const string MediaFileDelete = "/api/common/mediafile/delete";
        public const string GetAreaDataJson = "/api/common/area/jsondata";
        #endregion

        #region AuthedApi
        public const string SendChangAccountVerifyCodeSMS = "/api/customer/changeaccount/sms/sendverifycode";
        public const string SendChangAccountVerifyCodeEmail = "/api/customer/changeaccount/email/sendverifycode";
        public const string CustomerChangAccount = "/api/customer/changeaccount";
        #endregion

        #region BackenApi

        public const string LoadSystemMenus = "/api/backend/systemmenus/list";
        public const string GetSystemModuleList = "/api/backend/systemmodules/list";
        public const string LoadOrganizeList = "/api/backend/organize/list";
        public const string CheckAssignedButtonsChangeResult = "/api/backend/systemmodules/checkassignedbtnchange";
        public const string SystemModuleEdit = "/api/backend/systemmodules/edit";
        public const string LoadAdminRolesList = "/api/backend/customer/adminroles/list";
        public const string LoadCustomerPagedList = "/api/backend/customer/pagedlist";
        public const string LoadOnlineCustomerPagedList = "/api/backend/customer/online-pagedlist";
        public const string LoadPagedEmailListByCustomer = "/api/backend/customer/pagedemaillist";
        public const string SendCustomEmailToCustomer = "/api/backend/customer/sendcustomemail";
        public const string BackendCustomerEdit = "/api/backend/customer/edit";
        public const string BackendCustomerRoleAssign = "/api/backend/customer/assignrole";
        public const string BackendCustomerDelete = "/api/backend/customer/delete";
        public const string GetSystemModuleListsWithAuthorizeByAdminRole = "/api/backend/systemmodules/authlistbyrole";
        public const string UpdateSystemModuleAuthorize = "/api/backend/systemmodules/updatemoduleauthorize";
        public const string LoadScheduleTaskByPage = "/api/backend/scheduletask/list";
        public const string TriggerScheduleTask = "/api/backend/scheduletask/triggertask";
        public const string LoadPagedNaviMenu = "/api/backend/navimenu/pagedlist";
        #endregion

        #region FrontendApi
        public const string CustomerRegister = "/api/customer/register";
        public const string CustomerLogin = "/api/customer/login";
        public const string CustomerChangePassword = "/api/customer/changeaccountpassword";
        public const string CustomerPasswordRecover = "/api/customer/passwordrecover";
        public const string CustomerPasswordRecoverConfirmPost = "/api/customer/passwordrecoverconfirmpost";
        #endregion
    }
}
